package test;

import java.util.ArrayList;
import java.util.List;

public class ListToArray {

	private String listToString (List list) {
		String str = "";
		for (Object s: list) {
			str += s + ",";
		}
		return "[" + str.substring(0, str.length() - 1) + "]";
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ListToArray ltoa = new ListToArray();
		List list = new ArrayList();
		for (int i = 0; i < 3; i++) {
			list.add(i + "");
		}
		list.remove("4");
		System.out.println(ltoa.listToString(list));
		
		String[] dd = {"fe","fefe"};
		System.out.println(dd.length);
		System.out.println(dd[0]+" " + dd[1]);
	}


}
